<?php
namespace app\index\domain;

class Option extends Base
{
    /**
     * 获取某个配置组下的配置
     */
    public function valueGet($key)
    {
        if(!isset($this->_self))
            $this->_self = D('Option')->getValue('default');
        if(isset($this->_self[$key]))
            return $this->_self[$key];
        return D('Option')->getValue($key);
    }
}

